home *** CD-ROM | disk | FTP | other *** search
- %
- #EF
- #T15,1,Chapter 6 The Borland Graphics Interface Pg. 1
- #HS,1,4,80,25,11,1
- #C4,R5
- ~W~IWhat Is The BGI?~Y~I
-
- As mentioned in previous chapters, we must write programs that are able to
- run on a variety of video adaptors if we want to market our games widely.
- Usually, this would mean writing a lot of adaptor-specific code, which is
- a real pain. Fortunately, the good folks at |Borland| have done all of that
- work for us by providing the Borland Graphics Interface (BGI).
-
- #WN
- #C4,R13
- ~KThe BGI is a set of functions that provides us with a device-independent
- way of accessing video systems. Instead of us having to write one function
- that draws lines on an EGA screen, another to draw lines on an VGA screen,
- and another to draw lines on the SVGA, we can just call the BGI ~W~Iline()~Y~I
- function. This function is able to draw a line on whatever type of video
- adaptor is installed in the computer.~k
-
- #WN
- Using the BGI almost completely frees us from having to worry about what
- sort of adaptor our games are running on. If we use the BGI and write our
- programs correctly, we can build the same look into our games no matter
- what adaptor is being used.
-
- #WN
- #X